using System;
using System.Collections.Generic;
using System.Text;

namespace Decav.Gatsb.Application
{
    /// <summary>
    /// Interfaces communication between an executing workflow and the message listener
    /// and <see cref="CommandInterpreter"/>.
    /// </summary>
    [System.Workflow.Activities.ExternalDataExchange]
    public interface IWorkflowMessageGateway
    {
        /// <summary>
        /// Raised when a message is received that is part of a workflow that is currently
        /// running.
        /// </summary>
        event EventHandler<WorkflowMessageResponseReceivedEventArgs> MessageReceived;
    }
}
